import "./oldcommon/layer";
import $ from "jquery";
//模板提交
let action = {

  saveSuc: function (url, editUrl) {
    layer.open({
      content: '活动保存成功,如果您使用有任何疑问，请致电：0571-88613816。',
      btn: ['马上去看一下', '留下继续编辑'],
      yes: function (index) {
        layer.close(index);
        window.location = url
      },
      no: function (index) {
        layer.close(index);
        window.location = editUrl
      },
    });
  },
  alertDialog: function (content) {
    layer.open({
      content: content,
      btn: ['确定'],
      yes: function (index) {
        layer.close(index);
      }
    });
  }
};

export default action;
